//
//  PublicCategoryElementModel.h
//  Btpin
//
//  Created by Vic on 2019/3/13.
//  Copyright © 2019 Vic. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_OPTIONS(NSUInteger, SelectType) {
    SelectTypeOfDefault             =       0,
    SelectTypeOfTheRadio            =  1 << 1,  // 单选
    SelectTypeOfMultiSelect         =  1 << 2   // 多选
};

NS_ASSUME_NONNULL_BEGIN

@interface PublicCategoryElementModel : NSObject <NSCopying>

@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *titleName;

@property (nonatomic, copy) NSString *idstr; // ID层级串

@property (nonatomic, copy) NSString *spell;
@property (nonatomic, copy) NSString *pid;

@property (nonatomic, copy) NSString *detail;
@property (nonatomic, assign) SelectType selectType;
@property (nonatomic, assign) CGFloat itemWidth;
@property (nonatomic, assign) BOOL isSelect;
@property (nonatomic, assign) NSInteger labelid;
@property (nonatomic, assign) BOOL addNewItem;

@property (nonatomic, assign) BOOL canTapFlag;

// 国家/地区编码
@property (nonatomic, copy) NSString *code; // 数字编码
@property (nonatomic, copy) NSString *ecode; // 英文编码
@property (nonatomic, copy) NSString *ename; // 英文名称

@property (nonatomic, strong) NSMutableArray<__kindof PublicCategoryElementModel *> *_Nullable childArray;

@property (nonatomic, strong) NSMutableArray<PublicCategoryElementModel *> *jobCatsArrayForTworThreeLevel; // 职位类别--二级或三级

@end

NS_ASSUME_NONNULL_END
